import request from '@/utils/request'

// 查询试卷答题记录列表
export function listSheet(query) {
  return request({
    url: '/answer/sheet/list',
    method: 'get',
    params: query
  })
}

// 查询试卷答题记录详细
export function getSheet(id) {
  return request({
    url: '/answer/sheet/' + id,
    method: 'get'
  })
}

// 新增试卷答题记录
export function addSheet(data) {
  return request({
    url: '/answer/sheet',
    method: 'post',
    data: data
  })
}

// 修改试卷答题记录
export function updateSheet(data) {
  return request({
    url: '/answer/sheet',
    method: 'put',
    data: data
  })
}

// 删除试卷答题记录
export function delSheet(id) {
  return request({
    url: '/answer/sheet/' + id,
    method: 'delete'
  })
}
